<ul class="nav nav-list">
	<li<?php echo isset($menu) && in_array($menu, array('setting', 'setting-changepwd')) ? ' class="open active"' : '' ?>>
		<a href="#"  class="dropdown-toggle">
			<i class="menu-icon fa fa-cog"></i>
			<span class="menu-text"> 网站设置 </span>
			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>
		
		<ul class="submenu">
			<li<?php echo isset($menu) && 'setting' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin">
					<i class="menu-icon fa fa-caret-right"></i>
					网站设置
				</a>

				<b class="arrow"></b>
			</li>
			<li<?php echo isset($menu) && 'setting-changepwd' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/index/changepwd">
					<i class="menu-icon fa fa-caret-right"></i>
					修改密码
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>
<!--
	<li<?php echo isset($menu) && in_array($menu, array('nav', 'nav-category')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-sitemap"></i>
			<span class="menu-text">自定义导航</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>
		
		<ul class="submenu">
			<li<?php echo isset($menu) &&  in_array($menu, array('nav', 'nav-category')) ? ' class="active"' : '' ?>>
				<a href="/admin/menu">
					<i class="menu-icon fa fa-caret-right"></i>
					自定义导航
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>
-->

	<li<?php echo isset($menu) && in_array($menu, array('people', 'people-add', 'people-list')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-users"></i>
			<span class="menu-text">
				人员管理
			</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>

		<ul class="submenu">
			<li<?php echo isset($menu) && 'people-add' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/peoples/create?action=people">
					<i class="menu-icon fa fa-caret-right"></i>
					添加人员
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'people-list' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/peoples?action=people">
					<i class="menu-icon fa fa-caret-right"></i>
					人员列表
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>
<!--
	<li<?php echo isset($menu) && in_array($menu, array('article', 'article-category', 'article-details')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-newspaper-o"></i>
			<span class="menu-text">
				文章管理
			</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>

		<ul class="submenu">
			<li<?php echo isset($menu) && 'article-details' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/save">
					<i class="menu-icon fa fa-caret-right"></i>
					添加文章
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'article' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article">
					<i class="menu-icon fa fa-caret-right"></i>
					文章列表
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'article-category' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/category">
					<i class="menu-icon fa fa-caret-right"></i>
					文章分类
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>

	<li<?php echo isset($menu) && in_array($menu, array('case', 'case-details', 'case-category')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-file-powerpoint-o"></i>
			<span class="menu-text">
				案例管理
			</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>

		<ul class="submenu">
			<li<?php echo isset($menu) && 'case-details' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/save?action=case">
					<i class="menu-icon fa fa-caret-right"></i>
					添加案例
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'case' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article?action=case">
					<i class="menu-icon fa fa-caret-right"></i>
					案例管理
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'case-category' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/category?action=case">
					<i class="menu-icon fa fa-caret-right"></i>
					案例分类
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>

	<li<?php echo isset($menu) && in_array($menu, array('page', 'page-details', 'page-category')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-file-text-o"></i>
			<span class="menu-text">
				页面管理
			</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>

		<ul class="submenu">
			<!--<li<?php //echo isset($menu) && 'page-details' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/save?action=page">
					<i class="menu-icon fa fa-caret-right"></i>
					添加页面
				</a>
				<b class="arrow"></b>
			</li>
			<li<?php echo isset($menu) && ('page' == $menu || 'page-details' == $menu) ? ' class="active"' : '' ?>>
				<a href="/admin/article?action=page">
					<i class="menu-icon fa fa-caret-right"></i>
					页面管理
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>

	<li<?php echo isset($menu) && in_array($menu, array('ad', 'ad-category', 'ad-details')) ? ' class="open active"' : '' ?>>
		<a href="#" class="dropdown-toggle">
			<i class="menu-icon fa fa-tachometer"></i>
			<span class="menu-text">
				广告管理
			</span>

			<b class="arrow fa fa-angle-down"></b>
		</a>

		<b class="arrow"></b>

		<ul class="submenu">
			<li<?php echo isset($menu) && 'ad-details' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/save?action=ad">
					<i class="menu-icon fa fa-caret-right"></i>
					添加广告
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'ad' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article?action=ad">
					<i class="menu-icon fa fa-caret-right"></i>
					广告列表
				</a>

				<b class="arrow"></b>
			</li>

			<li<?php echo isset($menu) && 'ad-category' == $menu ? ' class="active"' : '' ?>>
				<a href="/admin/article/category?action=ad">
					<i class="menu-icon fa fa-caret-right"></i>
					广告分类
				</a>

				<b class="arrow"></b>
			</li>
		</ul>
	</li>
-->
	<li<?php echo isset($menu) && in_array($menu, array('logout')) ? ' class="open active"' : '' ?>>
		<a href="/admin/logout">
			<i class="menu-icon fa fa-power-off"></i>
			<span class="menu-text">
				退出系统
			</span>
		</a>
	</li>
</ul><!-- /.nav-list -->